package main

import "fmt"

type Usb interface {
	Say()
}

type Student struct{}

//这里绑定的是结构体指针类型方法
func (stu *Student) Say() {
	fmt.Println("this.Say()")
}

func main() {
	var stu Student = Student{}
	//var usb Usb = stu
	//这里会报 Student类型没有实现Usb接口
	//如果希望编辑通过，var usb Usb = &stu
	var usb Usb = &stu
	usb.Say() 
}
